package cn.com.cabinet.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.cabinet.web.entity.User;

public interface UserDao extends JpaRepository<User, Long>,JpaSpecificationExecutor<User>{

	@Query("select u from User u where u.uName like %?1%")
	public List<User> getUserListByuName(String key);
	
	
}
